﻿namespace MEF_Test.Formats.Matroska
{
    using System;
    using System.ComponentModel.Composition;

    using MEF_Test.Contracts;

    [Export(typeof(IMediaHandlerFactory))]
    [ExportMetadata("ContentType", "video/matroska")]
    [ExportMetadata("Extension", ".mkv")]
    public class MatroskaMediaHandlerFactory : IMediaHandlerFactory
    {
        public IMediaHandler Create(IFileHandler fileHandler)
        {
            return new MatroskaMediaHandler();
        }
    }
}